package com.medata.repository;


import com.medata.dataObject.Account;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AccountRepository extends JpaRepository<Account,Integer> {
    Account findByUserName(String name);
    Page<Account> findAll(Pageable pageable);
}
